package com.acme.bankapp.service.bank;

import com.acme.bankapp.domain.bank.Bank;
import com.acme.bankapp.domain.bank.Client;

public class BankService {
	public void addClient(Bank bank, Client cl) {
		bank.addclient(cl);

	}

	public void printMaximumAmountToWithdraw(Bank bank) {
		Client masc[] = bank.getClients();
		for (Client cl : masc) {
			if (cl != null)
				System.out.println(cl.getClientSalutation() + " "
						+ cl.getAcc(0).maximumAmountToWithdraw());
		}
	}
}
